package com.itgaoshu.service.impl;

import com.itgaoshu.bean.Bed;
import com.itgaoshu.bean.Departments;
import com.itgaoshu.bean.Doctor;
import com.itgaoshu.bean.Register;
import com.itgaoshu.mapper.InHospitalPathMapper;
import com.itgaoshu.service.InHospitalPathService;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;
import java.util.List;

/**
 * Created with IntelliJ IDEA.
 *
 * @author: xiyue
 * Date: 2021/3/22
 * Time: 19:15
 * To change this template use File | Settings | File Templates.
 * Description:
 */
@Service
@Transactional
public class InHospitalPathServiceImpl implements InHospitalPathService {
    @Resource
    private InHospitalPathMapper inHospitalPathMapper;
    //查询住院病人信息
    @Override
    public List<Register> selRegisters(Register register) {
        return inHospitalPathMapper.selRegisters(register);
    }

    //回显科室
    @Override
    public List<Departments> selDepartment() {
        return inHospitalPathMapper.selDepartment();
    }
    //回显医生
    @Override
    public List<Doctor> selDoctor(Integer departmentId) {
        return inHospitalPathMapper.selDoctor(departmentId);
    }
    //回显床位
    @Override
    public List<Bed> selBed(Integer departmentId) {
        return inHospitalPathMapper.selBed(departmentId);
    }
}
